package com.bwie.service;

import com.bwie.dao.UserDao;
import com.bwie.pojo.User;
import com.bwie.util.PageUtil;
import com.bwie.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author By:HDsir
 * @date 2022/4/8
 */
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserDao userDao;
    @Override
    public List<User> findList(UserVo userVo) {
        return userDao.findList(userVo);
    }

    @Override
    public List<User> findListPage(PageUtil pu, UserVo userVo) {
        return userDao.findListPage(pu,userVo);
    }

    @Override
    public Integer add(User user) {
        return userDao.add(user);
    }

    @Override
    public User findByUserId(Integer uid) {
        return userDao.findByUserId(uid);
    }

    @Override
    public Integer upd(User user) {
        return userDao.upd(user);
    }

    @Override
    public Integer del(Integer id) {
        return userDao.del(id);
    }
}
